import { Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { AppService } from './app.service';

@ApiTags('测试接口') //整个controller层swagger接口中的分类
@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @ApiOperation({ summary: 'Hellow World测试' }) //单个接口对应的描述
  @Get()
  getHello(): string {
    return this.appService.getHello();
  }
}
